local joyex__jiezi = fk.CreateSkill {

  name = "joyex__jiezi",

  tags = { Skill.Compulsory, },

}



joyex__jiezi:addEffect(fk.EventPhaseSkipping, {
  name = "joyex__jiezi",
  anim_type = "drawcard",
  frequency = Skill.Compulsory,
  events = {fk.EventPhaseSkipping},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(joyex__jiezi.name) and target ~= player and  --FIXME: 此时机无data，需补充
      player:usedSkillTimes(joyex__jiezi.name, Player.HistoryRound) < 2
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(2, joyex__jiezi.name)
  end,
})

return joyex__jiezi